class CompanyListModel {
  int errcode;
  String message;
  _Data data;

  CompanyListModel({this.errcode, this.message, this.data});

  CompanyListModel.fromJson(Map<String, dynamic> json) {
    errcode = json['errcode'];
    message = json['message'];
    data = json['data'] != null ? new _Data.fromJson(json['data']) : null;
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    data['errcode'] = this.errcode;
    data['message'] = this.message;
    if (this.data != null) {
      data['data'] = this.data.toJson();
    }
    return data;
  }
}

class _Data {
  String platComId;
  int pageIndex;
  String pageSize;
  List<CompanyModel> list;
  int count;

  _Data({this.platComId, this.pageIndex, this.pageSize, this.list, this.count});

  _Data.fromJson(Map<String, dynamic> json) {
    platComId = json['platComId'];
    pageIndex = json['pageIndex'];
    pageSize = json['pageSize'];
    if (json['list'] != null) {
      list = new List<CompanyModel>();
      json['list'].forEach((v) {
        list.add(new CompanyModel.fromJson(v));
      });
    }
    count = json['count'];
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    data['platComId'] = this.platComId;
    data['pageIndex'] = this.pageIndex;
    data['pageSize'] = this.pageSize;
    if (this.list != null) {
      data['list'] = this.list.map((v) => v.toJson()).toList();
    }
    data['count'] = this.count;
    return data;
  }
}

class CompanyModel {
  int id;
  String stewardComId;
  int stewardComCode;
  String stewardComName;
  String stewardComTaxCode;
  String stewardComLicense;
  String stewardComAddress;
  String stewardComLatitude;
  String stewardComLongitude;
  String stewardComServicePhone;
  int stewardComTradeAccountType;
  String stewardComAlipayAccount;
  String stewardComAlipayUserName;
  int stewardComState;
  String stewardComCreateUser;
  String stewardComDesc;
  String createUser;
  String createTime;
  String updateUser;
  String updateTime;
  int inviteCount;
  int serveVehOwnerCount;
  int serveReadyCount;
  int serveStopCount;
  int serveDownCount;
  int stewardComUserCount;

  CompanyModel(
      {this.id,
      this.stewardComId,
      this.stewardComCode,
      this.stewardComName,
      this.stewardComTaxCode,
      this.stewardComLicense,
      this.stewardComAddress,
      this.stewardComLatitude,
      this.stewardComLongitude,
      this.stewardComServicePhone,
      this.stewardComTradeAccountType,
      this.stewardComAlipayAccount,
      this.stewardComAlipayUserName,
      this.stewardComState,
      this.stewardComCreateUser,
      this.stewardComDesc,
      this.createUser,
      this.createTime,
      this.updateUser,
      this.updateTime,
      this.inviteCount,
      this.serveVehOwnerCount,
      this.serveReadyCount,
      this.serveStopCount,
      this.serveDownCount,
      this.stewardComUserCount});

  CompanyModel.fromJson(Map<String, dynamic> json) {
    id = json['id'];
    stewardComId = json['stewardComId'];
    stewardComCode = json['stewardComCode'];
    stewardComName = json['stewardComName'];
    stewardComTaxCode = json['stewardComTaxCode'];
    stewardComLicense = json['stewardComLicense'];
    stewardComAddress = json['stewardComAddress'];
    stewardComLatitude = json['stewardComLatitude'];
    stewardComLongitude = json['stewardComLongitude'];
    stewardComServicePhone = json['stewardComServicePhone'];
    stewardComTradeAccountType = json['stewardComTradeAccountType'];
    stewardComAlipayAccount = json['stewardComAlipayAccount'];
    stewardComAlipayUserName = json['stewardComAlipayUserName'];
    stewardComState = json['stewardComState'];
    stewardComCreateUser = json['stewardComCreateUser'];
    stewardComDesc = json['stewardComDesc'];
    createUser = json['createUser'];
    createTime = json['createTime'];
    updateUser = json['updateUser'];
    updateTime = json['updateTime'];
    inviteCount = json['inviteCount'];
    serveVehOwnerCount = json['serveVehOwnerCount'];
    serveReadyCount = json['serveReadyCount'];
    serveStopCount = json['serveStopCount'];
    serveDownCount = json['serveDownCount'];
    stewardComUserCount = json['stewardComUserCount'];
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    data['id'] = this.id;
    data['stewardComId'] = this.stewardComId;
    data['stewardComCode'] = this.stewardComCode;
    data['stewardComName'] = this.stewardComName;
    data['stewardComTaxCode'] = this.stewardComTaxCode;
    data['stewardComLicense'] = this.stewardComLicense;
    data['stewardComAddress'] = this.stewardComAddress;
    data['stewardComLatitude'] = this.stewardComLatitude;
    data['stewardComLongitude'] = this.stewardComLongitude;
    data['stewardComServicePhone'] = this.stewardComServicePhone;
    data['stewardComTradeAccountType'] = this.stewardComTradeAccountType;
    data['stewardComAlipayAccount'] = this.stewardComAlipayAccount;
    data['stewardComAlipayUserName'] = this.stewardComAlipayUserName;
    data['stewardComState'] = this.stewardComState;
    data['stewardComCreateUser'] = this.stewardComCreateUser;
    data['stewardComDesc'] = this.stewardComDesc;
    data['createUser'] = this.createUser;
    data['createTime'] = this.createTime;
    data['updateUser'] = this.updateUser;
    data['updateTime'] = this.updateTime;
    data['inviteCount'] = this.inviteCount;
    data['serveVehOwnerCount'] = this.serveVehOwnerCount;
    data['serveReadyCount'] = this.serveReadyCount;
    data['serveStopCount'] = this.serveStopCount;
    data['serveDownCount'] = this.serveDownCount;
    data['stewardComUserCount'] = this.stewardComUserCount;
    return data;
  }
}